package com.smedi.ismedi.personnel.core.domain.service.impl;

import com.smedi.ismedi.personnel.core.domain.aggregatemodel.PersonSyncFromImis;
import com.smedi.ismedi.personnel.core.domain.repository.PersonSyncFromImisRepository;
import com.smedi.ismedi.personnel.core.domain.service.PersonSyncFromImisDomainService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-6-16 13:53
 */
@Slf4j
@Service
@AllArgsConstructor
public class PersonSyncFromImisDomainServiceImpl implements PersonSyncFromImisDomainService {
    private final PersonSyncFromImisRepository personSyncFromImisRepository;

    @Override
    public void saveAll(List<PersonSyncFromImis> list) {
        personSyncFromImisRepository.doInsert(list);
    }

    @Override
    public void deleteAll() {
        personSyncFromImisRepository.deleteAll();
    }
}
